package com.zhiche.lisa.bms.dao.mapper.price;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.zhiche.lisa.bms.dao.model.price.PricePurchaseDtl;
import com.zhiche.lisa.bms.pojo.vo.price.PricePurchaseDetailVO;
import com.zhiche.lisa.bms.pojo.vo.price.PricePurchaseVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 支付价格明细 Mapper 接口
 * </p>
 *
 * @author hongbo
 * @since 2018-10-31
 */
public interface PricePurchaseDtlMapper extends BaseMapper<PricePurchaseDtl> {

    List<PricePurchaseDtl> selectListNoTenant(@Param("ew") Wrapper<PricePurchaseDtl> ew);

    /**
     * 获取需要更新的数据
     *
     * @param ew
     * @return
     */
    List<PricePurchaseDtl> getUpdatePriceDtlNoTenant(@Param("ew") Wrapper<PricePurchaseVO> ew);

    /**
     * 获取对应的价格
     *
     * @param ew
     * @return
     */
    List<PricePurchaseDetailVO> getPricePurchaseDetail(@Param("ew") Wrapper<PricePurchaseDetailVO> ew);

    /**
     * 根据指令号判断是否在慧运车存在
     *
     * @param orderCode
     * @return
     */
    Integer countVerifyHuiyuncheNoTenant(@Param("orderCode") String orderCode);
}
